FROM python:3.7.8
MAINTAINER Yuanfeng Xue
COPY . /app
WORKDIR /app
#RUN apt-get update -y
#RUN curl -LO https://dl.k8s.io/release/v1.21.0/bin/linux/amd64/kubectl
#RUN install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
RUN apt-get clean
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN rm -rf configs tests SQL env .idea .git .pytest_cache
RUN mkdir -p /root/.kube
EXPOSE 8001
ENTRYPOINT ["uwsgi","--ini","uwsgi.ini"]
